const drawsPromptApi = {
    /**
     * 分类列表
     *
     * @param {string} engine
     * @returns {Promise<DrawsPromptCategoryResponse[]>}
     * @returns
     */
    category(engine: string): Promise<DrawsPromptCategoryResponse[]> {
        return $request.get<DrawsPromptCategoryResponse[]>({
            url: '/apply/draws/prompt/category',
            params: {
                engine
            }
        })
    },

    /**
     * 词汇列表
     *
     * @param {string} engine
     * @param {number} cid
     * @returns {Promise<DrawsPromptLexiconResponse[]>}
     * @returns
     */
    lexicon(engine: string, cid: number): Promise<DrawsPromptLexiconResponse[]> {
        return $request.get<DrawsPromptLexiconResponse[]>({
            url: '/apply/draws/prompt/lexicon',
            params: {
                engine,
                cid
            }
        })
    },

    /**
     * 示例列表
     *
     * @param {string} engine
     * @returns {Promise<DrawsPromptExampleResponse[]>}
     * @returns
     */
    example(engine: string): Promise<DrawsPromptExampleResponse[]> {
        return $request.get<DrawsPromptExampleResponse[]>({
            url: '/apply/draws/prompt/example',
            params: {
                engine
            }
        })
    }
}

export default drawsPromptApi
